import socket,time
server = socket.socket()
server.bind(('127.0.0.1',55001))
server.listen()
client=server.accept()[0]
print(client.recv(100))
client.shutdown(socket.SHUT_RD)
while True:
    msg=client.recv(100)
    if len(msg) == 0:
        print('recv size 0')
        break
    print(msg)
time.sleep(5)
